package cn.lanca.gof0_5._05builder.case1.product;

/**
 * 产品角色：包含多个组成部件的复杂对象。
 *
 * @author meihongliang
 * @since 2020/8/7 16:50
 */
public class Product {
    private String partA;
    private String partB;
    private String partC;

    public void setPartA(String partA) {
        this.partA = partA;
    }

    public void setPartB(String partB) {
        this.partB = partB;
    }

    public void setPartC(String partC) {
        this.partC = partC;
    }

    public void show() {
        //显示产品的特性
        System.out.println(partA);
        System.out.println(partB);
        System.out.println(partC);
        System.out.println("Product show() running...");
    }
}
